<template>
  <div>
    <button @click="test">发送</button>
    <button @click="test1">百度热搜</button>
  </div>
</template>

<script setup lang="ts">
import { Test } from "@/services";
import { ref } from "vue";

const msg = ref({});
async function test() {
  msg.value = (await Test.getBaiduDataApi()).data;
  console.log(msg.value);
}

const baidu_msg = ref({});
async function test1() {
  msg.value = (await Test.getWeatherDataApi()).data;
  console.log(msg.value);
}
</script>

<style lang="scss" scoped>
</style>